package com.vclee.fast.integration.power.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.vclee.fast.integration.power.model.SysMenu;
import com.vclee.fast.integration.power.model.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {
    List<SysMenu> findUserAllMenu(@Param("userId") Integer userId);

    Integer selectCountByMobileOrUnique(@Param("id") Long id, @Param("unique") String unique, @Param("mobile") String mobile);

    List<SysMenu> findGroupAllMenu(@Param("userId") Integer userId);

    List<String> getAllUrl(@Param("userId") Long userId);
}